<%@ page import="sistema.Vendedor" %>



<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'nome', 'error')} required">
  <label for="nome">
    NOME COMPLETO
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="nome" required="" value="${vendedorInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'dataNasc', 'error')} required">
  <label for="dataNasc">
    DATA NACIMENTO
    <span class="required-indicator">*</span>
  </label>
  <g:datePicker name="dataNasc" precision="day"  value="${vendedorInstance?.dataNasc}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'estadoCivil', 'error')} ">
  <label for="estadoCivil">
    ESTADO CIVIL
  </label>
  <g:select name="estadoCivil" from="${vendedorInstance.constraints.estadoCivil.inList}" value="${vendedorInstance?.estadoCivil}" valueMessagePrefix="vendedor.estadoCivil" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'rg', 'error')} ">
  <label for="rg">
    RG
  </label>
  <g:textField name="rg" value="${vendedorInstance?.rg}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'cpf', 'error')} required">
  <label for="cpf">
    CPF
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="cpf" required="" value="${vendedorInstance?.cpf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'endereco', 'error')} ">
  <label for="endereco">
    ENDEREÇO
  </label>
  <g:textArea name="endereco" cols="40" rows="5" maxlength="10000" value="${vendedorInstance?.endereco}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'enderecoNum', 'error')} ">
  <label for="enderecoNum">
    NUMERO
  </label>
  <g:textField name="enderecoNum" value="${vendedorInstance?.enderecoNum}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'cep', 'error')} ">
  <label for="cep">
    CEP
  </label>
  <g:textField name="cep" maxlength="10" value="${vendedorInstance?.cep}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'cidade', 'error')} ">
  <label for="cidade">
    CIDADE
  </label>
  <g:textField name="cidade" value="${vendedorInstance?.cidade}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'estado', 'error')} ">
  <label for="estado">
    ESTADO
  </label>
  <g:select name="estado" from="${vendedorInstance.constraints.estado.inList}" value="${vendedorInstance?.estado}" valueMessagePrefix="vendedor.estado" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'telefone', 'error')} ">
  <label for="telefone">
    TELEFONE
  </label>
  <g:textField name="telefone" value="${vendedorInstance?.telefone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'celular', 'error')} ">
  <label for="celular">
    CELULAR
  </label>
  <g:textField name="celular" value="${vendedorInstance?.celular}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'operadoraCel', 'error')} ">
  <label for="operadoraCel">
    OPERADORA CELULAR
  </label>
  <g:select name="operadoraCel" from="${vendedorInstance.constraints.operadoraCel.inList}" value="${vendedorInstance?.operadoraCel}" valueMessagePrefix="vendedor.operadoraCel" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'email1', 'error')} ">
  <label for="email1">
    EMAIL PRINCIPAL
  </label>
  <g:field type="email" name="email1" value="${vendedorInstance?.email1}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'email2', 'error')} ">
  <label for="email2">
    EMAIL SECUNDARIO
  </label>
  <g:field type="email" name="email2" value="${vendedorInstance?.email2}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'msn', 'error')} ">
  <label for="msn">
    MSN
  </label>
  <g:field type="email" name="msn" value="${vendedorInstance?.msn}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'skype', 'error')} ">
  <label for="skype">
    SKYPE
  </label>
  <g:textField name="skype" value="${vendedorInstance?.skype}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'redeSocial', 'error')} ">
  <label for="redeSocial">
    REDE SOCIAL
  </label>
  <g:textField name="redeSocial" value="${vendedorInstance?.redeSocial}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'anexo1', 'error')} required">
  <label for="anexo1">
    ANEXO 1
    <span class="required-indicator">*</span>
  </label>
  <input type="file" id="arquivo1" name="arquivo1" />
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'anexo2', 'error')} required">
  <label for="anexo2">
    ANEXO 2
    <span class="required-indicator">*</span>
  </label>
  <input type="file" id="arquivo1" name="arquivo2" />
</div>

<div class="fieldcontain ${hasErrors(bean: vendedorInstance, field: 'anexo3', 'error')} required">
  <label for="anexo3">
    ANEXO 3
    <span class="required-indicator">*</span>
  </label>
  <input type="file" id="arquivo1" name="arquivo3" />
</div>

